/*
 * Copyright (c) 2006, 2023, webrx.cn All rights reserved.
 *
 */

package cn.webrx;

import java.util.Calendar;
import java.util.Date;
import java.util.Timer;
import java.util.TimerTask;

/**
 * <p>Project: jse2303 - T7</p>
 * <p>Powered by webrx On 2023-07-26 17:53:10</p>
 * <p>描述：<p>
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class T7 {
    public static void main(String[] args) {
        System.out.printf("%tF %<tT%n", System.currentTimeMillis());
        Timer timer = new Timer();
        //timer.schedule(new TimerTask() {
        //    @Override
        //    public void run() {
        //        System.out.printf("%tF %<tT%n", System.currentTimeMillis());
        //    }
        //}, 5000, 2000);
        Calendar c = Calendar.getInstance();
        c.set(2023, 7 - 1, 26, 17, 58, 40);
        Date dd = c.getTime();

        timer.schedule(new TimerTask() {
            @Override
            public void run() {
                System.out.printf("%tF %<tT%n", System.currentTimeMillis());
            }
        }, dd, 5000);
    }
}
